home *** CD-ROM | disk | FTP | other *** search
/ Holt Researcher: American History / Holt Researcher: American History.iso / pc / modules / grph.dxr / 00004.ls < prev    next >
Encoding:
Text File  |  2000-01-28  |  441 b   |  24 lines

  1. on exitFrame
  2.   global gGraph
  3.   doRollover(gGraph)
  4.   go(the frame)
  5. end
  6.  
  7. on keyDown
  8.   global gGraph
  9.   if the machineType = 256 then
  10.     theModifier = the controlDown
  11.   else
  12.     theModifier = the commandDown
  13.   end if
  14.   if theModifier then
  15.     if the keyPressed = "p" then
  16.       simulateClickOn(getPrintButton(gGraph))
  17.     else
  18.       if the keyPressed = "w" then
  19.         simulateClickOn(getCloseBox(gGraph))
  20.       end if
  21.     end if
  22.   end if
  23. end
  24.